package com.ice.body.hardware.service.impl;

import com.ice.body.business.model.FaceLogModel;
import com.ice.body.hardware.dao.FaceLogDao;
import com.ice.body.hardware.service.FaceLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;



@Service
public class FaceLogServiceImpl implements FaceLogService {

    @Resource
    FaceLogDao faceLogDao;

/*    @Override
    public PageInfo searchFaceLogPage(HashMap<String,Object> paramMap){
        PageInfo pageInfo = new PageInfo();
        pageInfo.setList(faceLogMapper.selectFaceLogPage(paramMap));
        pageInfo.setPageNum(Integer.parseInt(paramMap.get("pageNum").toString()));
        pageInfo.setPageSize(Integer.parseInt(paramMap.get("pageSize").toString()));
        pageInfo.setTotal(faceLogMapper.selectFaceLogCount(paramMap));
        return pageInfo;
    }*/

    @Override
    public ArrayList<FaceLogModel> searchFaceLogList(FaceLogModel model){
        return faceLogDao.selectFaceLogList(model);
    }

    @Override
    public int addFaceLog(HashMap<String,Object> param){
        return faceLogDao.insertFaceLog(param);
    }
}
